/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package nl.uva.weevil.core.tests;

import nl.uva.weevil.core.port.Port;
import nl.uva.weevil.core.task.Task;
import nl.uva.weevil.core.topology.Topology;

/**
 *
 * @author reggie
 */
public class Main {
    public static void main(String[] args){
        Topology top = new Topology();
        Task t1 = new Task("task1");
        Task t2 = new Task("task2");
        Task t3 = new Task("task3");
        
        Port t1op1= new Port("t1op1");        
        Port t2ip1= new Port("t2ip1");
        Port t2op1= new Port("t2op1");
        Port t3ip1= new Port("t3ip1");
        
        top.addNode(t1);
        top.addNode(t2);
        top.addNode(t3);
        
        top.addPort2Node(t1op1, t1, Topology.PORT_DIRECTION_OUT);
        top.addPort2Node(t2ip1, t2, Topology.PORT_DIRECTION_IN);
        top.addPort2Node(t2op1, t2, Topology.PORT_DIRECTION_OUT);
        top.addPort2Node(t3ip1, t3, Topology.PORT_DIRECTION_IN);
        
        top.connectPorts(t1op1, t2ip1);
        top.connectPorts(t2op1, t3ip1);        
        
    }
}
